// 引入Express模块
const express = require('express');
const net = require('net');
var path = require('path');
var ejs = require('ejs');
// 创建Express应用
const app = express();
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
app.engine('.html', ejs.__express);
app.use(express.static(path.join(__dirname, 'public')));
// 定义路由，当访问根路径时返回"Hello, World!"
app.use('/', require('./routes/index'));

// 启动HTTP服务器，监听在3000端口
app.listen(3000, () => {
    console.log('Server is running on port 3000');
});
//let nanonueron = require('./nanonueron')

//散列表
//var HashMap = require('./algorithm/HashMap');

//require('./ai/transformer');

//BFS
//require('./algorithm/BFS');

//狄克斯特拉算法
require('./algorithm/dijkstras');

